package com.hibernate.hrm.entity.dto.department;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;

public class DepartmentAddDTO {
    @NotBlank(message = "部门名称不能为空")
    @Size(max = 50, message = "部门名称不能超过50个字符")
    private String departmentName;

    @NotBlank(message = "部门代码不能为空")
    @Size(max = 20, message = "部门代码不能超过20个字符")
    @Pattern(regexp = "^[a-zA-Z0-9_-]+$", message = "部门代码只能包含字母、数字、下划线和横线")
    private String departmentCode;

    private String departmentIntroduction;

    // Getters and Setters
    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getDepartmentCode() {
        return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
        this.departmentCode = departmentCode;
    }

    public String getDepartmentIntroduction() {
        return departmentIntroduction;
    }

    public void setDepartmentIntroduction(String departmentIntroduction) {
        this.departmentIntroduction = departmentIntroduction;
    }

    private Integer departmentHeadID;

    public Integer getDepartmentHeadID() {
        return departmentHeadID;
    }

    public void setDepartmentHeadID(Integer departmentHeadID) {
        this.departmentHeadID = departmentHeadID;
    }
}
